#!/usr/bin/env python
#-*- coding:utf-8 -*-

# file:readerModel.py
# author:ytytyt
# datetime:2021/6/26 17:46
# software: PyCharm
"""
this is functiondescription
"""
# import module your need
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

class ReaderModel(db.Model):
    __tablename__ = 'reader_info'

    reader_id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.VARCHAR(30), nullable=False)
    password = db.Column(db.VARCHAR(30), nullable=False, server_default=db.text("'123456'"))
    sex = db.Column(db.Enum('男', '女', '保密'), nullable=False, server_default=db.text("'保密'"))
    telephone = db.Column(db.String(30))
